package com.web.cloud.service.sm;

import com.web.cloud.constances.ModelConsts;
import com.web.cloud.dao.sm.SmUserDao;
import com.web.cloud.model.sm.SmUser;
import com.web.cloud.service.pub.BaseService;
import org.springframework.stereotype.Service;

/**
 * 用户Service实现类
 *
 * @author liuhm
 * @since 2015年12月12日
 */
@Service("userService")
public class SmUserService extends BaseService<SmUser> {
    @Override
    public String getModuleCode() {
        return ModelConsts.MODEL_SM;
    }

    public SmUserDao getDao() {
        return (SmUserDao) this.dao;
    }

    public SmUser selectByLoginName(String code) {
        SmUser user = getDao().selectByLoginName(code);
        return user;
    }
}
